package com.blb.hello;

/**
 * 打招呼的服务
 */
public class HelloService {

    //打招呼属性
    private HelloProperties helloProperties;

    public HelloService(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    //招呼方法
    public String hello(){
        return "Hello!!!" + helloProperties.getName() +
                ",年龄：" + helloProperties.getAge() +",性别："
                + helloProperties.getGender();
    }
}
